﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BI.CF.Factory;
using BI.CF.Model;
using BI.CF.IDAL;   

namespace BI.CF.BLL
{
    public class LoginRecord_BLL
    {
        static CF_Factory fac = CF_Factory.DataBaseType();
        LoginRecordIDAL idal = fac.LoginRecordSQL();

        /// <summary>
        /// 添加登陆记录信息
        /// </summary>
        /// <param name="l"></param>
        /// <returns></returns>
        public bool AddLoginRecord(LoginRecordModel model)
        {
            return idal.AddLoginRecord(model);
        }
        /// <summary>
        /// 分页显示IP信息
        /// </summary>
        /// <returns></returns>
        public PageList.Pager<LoginRecordModel> ShowLoginRecord(string TimeMin, string TimeMax, string state,int Uid ,int PageIndex, int PageSize )
        {
            return idal.ShowLoginRecord( TimeMin, TimeMax, state, Uid, PageIndex, PageSize);
        }
    }
}
